package com.reason.user.feign;

import com.reason.common.pojo.Result;
import com.reason.user.pojo.Job;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author zhouxiaoyu
 */
@FeignClient("user")
public interface JobFeign {
    /**
     * 查询所有
     * @return
     */
    @RequestMapping("/job/findAll")
    public Result<List<Job>> findAll();
    /**
     * 根据id查询job
     * @param Id
     * @return
     */
    @GetMapping("/job/findById/{Id}")
    public Job findById(@PathVariable("Id") Long Id);
}
